# -*- coding:utf-8 -*-
# @Time: 2020/8/31 16:58
# @Author: liupengfei
# @File: filters.py

import django_filters

from .models import Option


class OptionFilter(django_filters.FilterSet):
    type = django_filters.ChoiceFilter(field_name='type', choices=Option.TYPE_CHOICES)

    class Meta:
        model = Option
        fields = '__all__'
